<!DOCTYPE html>
<html>
  <head>
    <title>客户管理列表</title>
    <#include "/inc/base-style.ftl">
  </head>
  <body class="${bodyClass}">
    <div class="wrapper">
      <!-- Main Header -->
     <#include "/inc/main-header.ftl">
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <#include "/inc/slidebar-menu.ftl">
        </section>
        <!-- /.sidebar -->
      </aside>

      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            客户管理列表  
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
        <div class="box">
        
            <div class="box-header">
                <#include "crm/ocean/search.ftl">
            </div>
            
            <div class="box-body">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>ID</th>  
                            <th>姓名</th>
                            <th>职务</th> 
                            <th>公司</th>
                            <th>客户状态</th>
                            <th>付款状态</th> 
                            <th>地区</th>
                            <th>会籍经理</th>
                            <th>资料提交</th>    
                            <th>添加时间</th>              
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <#list lists as list>
                        <tr data-event-sign-id="${list.id}">
                            <td>${list.id}</td> 
                            <td>${list.uname}</td>
                            <td>${list.position}</td>
                            <td>${list.com_name}</td>
                            <td>${list.statusName}</td>
                            <td>${list.payStatus}</td>
                            <td>${list.province}</td>
                            <td>${list.memshipName}</td>
                            <td><#if (list.infoSubmitTime)??>${list.infoSubmitTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td><#if (list.createTime)??>${list.createTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td> 
                                <!-- Single button -->
                                <div class="btn-group">
                                  <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    管理 <span class="caret"></span>
                                  </button>
                                  <ul class="dropdown-menu" style="left:-40px;">
                                    <li><a href="/crm/ocean/view?uid=${list.user_id}">查看</a></li>
                                    <li><a href="javascript:;" onclick="assignMemship(${list.user_id},${list.memshipId});return false;">分配会籍经理</a></li>
                                     <li role="separator" class="divider"></li>
                                     <li><a href="/crm/serviceRecord/list?uid=${list.uid}">服务记录</a></li>
                                     <li><a href="/crm/trackPerson/list?uid=${list.uid}">会籍服务变更记录</a></li>                                                                                                                                            
                                  </ul>
                                </div>
                            </td>
                        </tr>
                        </#list>
                    </tbody>
                </table>
            </div>
            <div class="box-footer">
                <@zhd.page pm url />
            </div>
            
        </div>
        
        <!-- Your Page Content Here -->
        <#include "/crm/ocean/assignMemship.ftl">

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
    <#include "/inc/main-footer.ftl">

    

    <#include "/inc/base-script.ftl"> 
    <#include "/script/ocean/mainScript.ftl">
  </body>
</html>
